<div id="content_header">
  <h3>{{ current.CardNumber }} Editing</h3>
</div>
<div class="row">
  <form name="form" role="form" ng-submit="update()">

    <div class="form-group">
      <label for="CreditCardTypeId">
        Credit Card
      </label>
      <select name="" class="form-control" id="CreditCardTypeId" ng-model="current.CreditCardTypeId" ng-options="creditcard.CreditCardTypeId as creditcard.CreditCardName for creditcard in creditcardtypes" ng-selected="current.CreditCardTypeId" required>
        <option value="" ng-hide="current.CreditCardTypeId">Select a Credit Card.</option>
      </select>
    </div>

    <div class="form-group">
      <label for="CardNumber">
        Card Number
      </label>
      <span class="error" ng-show="form.CardNumber.$error.required">Required!</span>
      <input type="text" name="CardNumber" class="form-control" id="CardNumber" placeholder="Input field" ng-model="current.CardNumber" required>
    </div>

    <!-- <div class="form-group">
      <label for="Amount">
        Amount
      </label>
      <span class="error" ng-show="form.Amount.$error.required">Required!</span>
      <input type="number" name="Amount" class="form-control" id="Amount" placeholder="Input field" ng-model="current.Amount" min="0" required>
    </div> -->

    <div class="form-group">
      <label for="Name">
        Name
      </label>
      <span class="error" ng-show="form.Name.$error.required">Required!</span>
      <input type="text" name="Name" class="form-control" id="Name" placeholder="Input field" ng-model="current.Name" required>
    </div>

    <div class="form-group">
      <label for="ExpireMonth">
        Expire Month
      </label>
      <span class="error" ng-show="form.ExpireMonth.$error.required">Required!</span>
      <input type="number" name="ExpireMonth" class="form-control" id="ExpireMonth" placeholder="Input field" ng-model="current.ExpireMonth" min="0" max="12" required>
    </div>

    <div class="form-group">
      <label for="ExpireYear">
        Expire Year
      </label>
      <span class="error" ng-show="form.ExpireYear.$error.required">Required!</span>
      <input type="number" name="ExpireYear" class="form-control" id="ExpireYear" placeholder="Input field" ng-model="current.ExpireYear" min="1991" required>
    </div>

    <button type="submit" class="btn btn-primary" >Submit</button>
  </form>
</div>